<?php
/**
 * Created by Command.
 * User: Vito
 */

declare (strict_types = 1);

namespace app\model;

class PollingDevice extends BaseModel
{

    const DATA_TYPE_HOUR = 0;
    const DATE_TYPE_DAY  = 1;
 
    protected $dateTypeEnum = [
        self::DATA_TYPE_HOUR => 'N小时',
        self::DATE_TYPE_DAY  => 'N天',
    ];
    

    /**
     * @Description: 关联巡检类型
     * @author: xiayu <cb1071403016@126.com>
     * @Date: 2022-11-04 11:18:54
     * @version: 1.0.0
     * @return [type]
     */   
    public function pollingType(){
        return $this->belongsTo('pollingType','type_id');
    }

}
